package org.komarichin.beans;

import java.util.List;

/**
 * <p>
 * Interface describe entry can contain comment for it
 * </p>
 * User: Michael Komarichin
 * Date: Mar 10, 2010
 * Time: 8:53:42 PM
 */
public interface IHasComment<T, PK> extends IGenericEntity<PK> {
    /**
     * @return list of comments {@link org.komarichin.beans.IComment}
     */
    List<T> getComments();

    /**
     * @param comments assign loaded comments for object
     */
    void setComments(List<T> comments);
}
